package pl.jdeveloper.derivato.web.panel;

import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.CompoundPropertyModel;
import org.apache.wicket.model.IModel;

import pl.jdeveloper.derivato.bean.Calculation;
import pl.jdeveloper.derivato.web.form.CalculationForm;

public class CalculationFormPanel extends Panel{
	
	CalculationForm calcForm;

	public CalculationFormPanel(String id, IModel model) {
		super(id, model);
		add(calcForm = new CalculationForm("calcForm", model));
	}

	public CalculationFormPanel(String id) {
		super(id);
		add(calcForm = new CalculationForm("calcForm", new CompoundPropertyModel(new Calculation())));	
	}
	
	
}
